package javabase.enhancestring.split;

public class SplitDemo1 {

	public static void main(String[] args) {
		String str = null;
		StringBuilder stringBuilder = new StringBuilder();
		for (int i = 0; i < 1000; i++) {
			stringBuilder.append(i);
			stringBuilder.append(";");
		}
		str = stringBuilder.toString();
		long lt = System.currentTimeMillis();
		for (int j = 0; j < 10000; j++) {
			str.split(";");
		}
		System.out.println("耗时：" + (System.currentTimeMillis() - lt));
	}

}
